From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 23 Sep 2005 19:09:59 +0000 (+0100) Subject: Add an install-time check for hotplug. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16770^2~1^2~4^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=34a8699cc7fd0ceb312498410f21c09d93ed3306;p=xen.git Add an install-time check for hotplug. The hotplug subsystem is currently needed for block devices to work, as of changeset 6742:e9d01c5dc7b4d6b7cda9ade0d137ddb89bb204cc. Add a script to check for the presence of hotplug and warn if it isn't found. Signed-off-by: Michael Vrable --- diff --git a/tools/check/check_hotplug b/tools/check/check_hotplug new file mode 100644 index 0000000000..15c902171c --- /dev/null +++ b/tools/check/check_hotplug @@ -0,0 +1,10 @@ +#!/bin/bash +# CHECK-INSTALL + +function error { + echo + echo ' *** Check for the hotplug scripts (hotplug) FAILED' + exit 1 +} + +which hotplug 1>/dev/null 2>&1 || error